package com.briup.oagg.facade.service.model;

import com.briup.oagg.facade.web.vm.page.Page;
import com.briup.oagg.facade.web.vm.model.LearnAlgorithmAddVM;
import com.briup.oagg.facade.web.vm.model.LearnAlgorithmListVM;
import com.briup.oagg.facade.web.vm.model.LearnAlgorithmVM;

import java.util.List;
/**
 * 学习算子信息业务逻辑接口
 *
 * @author briup
 */
public interface ILearnAlgorithmService {
    /**
     *
     * @param algorithmId
     * @return
     */
    LearnAlgorithmVM findById(String algorithmId);

    /**
     *
     * @param pageNum
     * @param pageSize
     * @param name
     * @return
     */
    Page<LearnAlgorithmVM> findByPage(int pageNum, int pageSize, String name);

    /**
     * 新增算法
     * @param vm
     */
    void addLearnAlgorithm(LearnAlgorithmAddVM vm);

    /**
     *
     * @param algorithmId
     */
    void deleteById(String algorithmId);

    /**
     *
     * @param platform
     * @param type
     * @return
     */
    List<LearnAlgorithmListVM> findByCondition(String platform, Integer type);
}
